package com.wxb.mapper;

import com.wxb.domain.MallOrderEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Date 2025-05-28 14:05
 * @Version 1.0
 * @Description
 * @ClassName MallOrderMapper
 **/
public interface MallOrderMapper {

    int save(MallOrderEntity t);

    void save(Map<String, Object> map);

    void saveBatch(List<MallOrderEntity> list);

    int update(MallOrderEntity t);

    int update(Map<String, Object> map);

    int delete(Object id);

    int delete(Map<String, Object> map);

    int deleteBatch(Object[] id);

    MallOrderEntity queryObject(Object id);

    List<MallOrderEntity> queryList(Map<String, Object> map);

    List<MallOrderEntity> queryList(Object id);

    int queryTotal(Map<String, Object> map);

    int queryTotal();
    /**
     * 根据订单编号查询订单
     *
     * @param orderSn
     * @return
     */
    MallOrderEntity queryObjectByOrderSn(@Param("orderSn") String orderSn);
}
